circular permutations maths wallah